//
//  PackagePlayer.h
//  PackageSDK
//
//  Created by  Junior on 2022/7/20.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol VizPackagePlayerDelegate <NSObject>

/**
 点击空白处回调
 */
- (void)packagePlayerDidClickBlanck;

/**
 收到改变视频进度时间
 */
- (void)packagePlayerReceivedSeekTime:(int64_t)time;

@end


@interface VizPackagePlayer : NSObject

/**
代理
 */
@property (nonatomic, weak) id delegate;

/**
 渲染层
 建议与视频宽高大小一致
 */
@property (nonatomic, strong) UIView *renderView;

/**
 sei时码
 */
@property (nonatomic, assign) NSInteger timeStamp;

/**
 programId：节目id
 userId：用户id
 */
- (void)initWithProgramId:(NSString * _Nonnull)programId userId:(NSString * _Nonnull)userId;

/**
 退出播放页的时候，建议调用
 */
- (void)destroy;

@end

NS_ASSUME_NONNULL_END
